//assumes the self is an actor

if(isInitialized(self.ai))
{
    //guarantee ai is the self for the aiScript
    with(ai)
    {
        script_execute(aiScript);
    }
}
